package com.lhframework.sms.service.impl;

import com.lhframework.sms.model.ShortMessage;
import com.lhframework.sms.service.ShortMessageService;
import lh.base.support.serviceImpl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lh on 2017/7/6.
 */
@Service("shortMessageService")
public class ShortMessageServiceImpl extends BaseServiceImpl<ShortMessage, Long> implements ShortMessageService {
    @Override
    public List<ShortMessage> findTimingShortMessages() {
        return findByFieldsAndValues("status", ShortMessage.Status.WAIT_SEND.name(), "timeType", ShortMessage.TimeType.TIMING.name(), "del", 0);
    }
}
